import { tbfdgroup } from '../../../atoms/db';

export default async function getallgroups() {
	const d = await tbfdgroup()
		.select('*')
		.orderBy('pid', 'asc')
		.orderBy('name', 'asc');
	return d.map((it) => {
		return {
			...it
		};
	});
}
